package com.yunshang.ys.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import com.yunshang.ys.R;
import com.yunshang.ys.base.BaseFragment;
import com.yunshang.ys.utils.ComplexUtil;

/**
 * Created by Administrator on 2017/6/27.
 */

public class MainFragment4 extends BaseFragment{


    private View viewContent;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        viewContent = inflater.inflate(R.layout.fragment_main4, null);

        return viewContent;
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        if (!hidden) {
            System.out.println("4");
//            Toast.makeText(ComplexUtil.getmApplicationContent(), "4", Toast.LENGTH_SHORT).show();
//            Toast.makeText(getActivity(), "4", Toast.LENGTH_SHORT).show();
        }
        super.onHiddenChanged(hidden);
    }
}
